
<div class="col-sm-12">
	<div class="box margin-middle max-width">
		<!-- BOX-BODY -->
		<div class="box-body">
			{{#bs-form formLayout=formLayout model=serviceitemModel invalid=(action "invalid")}}
			<div class="row">
				<div class="col-xs-12">
					<p class="user-add-btn">
						{{#if detailEdit}}
							{{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-save"  text='保存' clickAction="saveServiceitem" saveServiceitem="saveServiceitem"}}
							{{/ui/mix-button}}
							{{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo"  text='取消'  clickAction="detailCancel" detailCancel="detailCancel" }}
							{{/ui/mix-button}}
						{{else}}
							{{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-edit"  text='编辑'  clickAction="detailEditClick" detailEditClick="detailEditClick"}}
			        {{/ui/mix-button}}
							{{#ui/mix-button class="user-btn trash-btn" iconClass="fa fa-trash-o"  text='删除'  clickAction="delById" delById="delById" }}
			        {{/ui/mix-button}}
						{{/if}}
					</p>
				</div>

			<!-- 列表详细介绍 -->
				<div class="col-xs-12 nopadding-left">
					<div class="col-xs-12 nopadding-horizontal mt20">
						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">项目名称：</span>
								{{#if detailEdit}}
									{{bs-form-element property="name" class="inline-block form-input-group label-normal" controlType="name" placeholder=serviceitemInfo.name}}
								{{else}}
									<div class="input-group-content">{{serviceitemInfo.name}}</div>
								{{/if}}
							</div>
							
						</div>

						<div class="col-xs-12 col-sm-6"	>
				      <div class="form-input-group">
				        <span class="input-group-addon">类&emsp;&emsp;别：</span>
									{{#if detailEdit}}
										{{#if id}}
											{{callbusi/dict-selector class="inline-block" groupCode=constants.countType curDict=ServiceitemInfo.countType
												showName=serviceitemInfo.countType.typename dictSelect="countTypeSelect"}}
										{{else}}
											{{callbusi/dict-selector class="inline-block" groupCode=constants.countType curDict=ServiceitemInfo.countType
												showName='类别' dictSelect="countTypeSelect" preselected=false}}
										{{/if}}
									{{else}}
										<div class="input-group-content">{{serviceitemInfo.countType.typename }}</div>
									{{/if}}
							</div>
							
						</div>

				    {{#if count}}
						<div class="col-xs-12 col-sm-6"	>
				      <div class="form-input-group">
								<span class="input-group-addon">周&emsp;&emsp;期：</span>
									{{#if detailEdit}}
										{{#if id}}
											{{callbusi/dict-selector class="inline-block" groupCode=constants.period curDict=ServiceitemInfo.period
												showName=serviceitemInfo.period.typename dictSelect="periodSelect"}}
										{{else}}
											{{callbusi/dict-selector class="inline-block" groupCode=constants.period curDict=ServiceitemInfo.period
												showName='周期' dictSelect="periodSelect" preselected=false}}
										{{/if}}
									{{else}}
										<div class="input-group-content">{{serviceitemInfo.period.typename}}</div>
									{{/if}}
							</div>
							
						</div>

						<div class="col-xs-12 col-sm-6"	>
				      <div class="form-input-group">
				        <span class="input-group-addon">频次&nbsp;(次)：</span>
									{{#if detailEdit}}
									{{callbusi/busi-form-element class="inline-block full-width" placeholder="频次(必填)"
										model=serviceitemInfo property="frequency"}}
									{{else}}
										<div class="input-group-content">{{serviceitemInfo.frequency}}</div>
									{{/if}}
								</div>
							
						</div>

				    {{else}}


				    {{/if}}
						<div class="col-xs-12 col-sm-6"	>
							<div class=" form-input-group">
								<div class="input-group-addon">参考时长(分钟)：</div>
									{{#if detailEdit}}
									{{callbusi/busi-form-element  class="inline-block full-width" placeholder="时间(必填)"
										model=serviceitemInfo property="serviceTime"}}
									{{else}}
										<div class="input-group-content">{{serviceitemInfo.serviceTime}}</div>
									{{/if}}
							</div>
							
						</div>

						<div class="col-xs-12 col-sm-6"	>
							<div class="form-input-group">
				        <div class="input-group-addon">项目说明：</div>
				          {{#if detailEdit}}
									{{callbusi/busi-form-element class="inline-block full-width" placeholder="项目说明(必填)"
										model=serviceitemInfo property="remark"}}
				          {{else}}
				            <div class="input-group-content">{{serviceitemInfo.remark}}</div>
				          {{/if}}
				        </div>
							
						</div>
					</div>
				</div>
			<!-- 列表详细介绍 -->
		</div>
			{{/bs-form}}

		</div>
		<!-- /BOX-BODY -->
	</div>
</div>

{{#if showpopInvitePassModal}}
	{{#bs-modal body=false footer=false header=false closedAction=(action "invitation")
	submitAction=(action "cancelPassSubmit" serviceitemInfo)}}
		{{#bs-modal-header}}
			<h3 class="modal-title">删除提示</h3>
		{{/bs-modal-header}}
		{{#bs-modal-body}}
			<h4 class="modal-title">是否删除该条记录？</h4>
		{{/bs-modal-body}}

		{{#bs-modal-footer as |footer|}}
			{{#bs-button action=(action "cancelPassSubmit" serviceitemInfo) type="primary" disabled=prepaidDisabled}}确定{{/bs-button}}
			{{#bs-button action=(action "invitation") type="default"}}取消{{/bs-button}}
		{{/bs-modal-footer}}
	{{/bs-modal}}
{{/if}}
